import fetch from '@/utils/fetch';

export function purchaseList(data) {  //查询采购订单列表
  return fetch({
    url: '/api/pc/purch_order/list',
    method: 'post',
    data
  });
}

export function purchaseDetail(data) {  //查询采购订单详情
  return fetch({
    url: '/api/pc/purch_order/detail',
    method: 'post',
    data
  });
}

export function purchaseDel(data) {  //删除采购单
  return fetch({
    url: '/api/pc/purch_order/delete',
    method: 'post',
    data
  });
}

export function purchaseModify(data) {  //新增/修改采购单
  return fetch({
    url: '/api/pc/purch_order/modify',
    method: 'post',
    data
  });
}

export function purchaseSubmitApprove(data) {  //采购单提交审批
  return fetch({
    url: '/api/pc/purch_order/submit_approve',
    method: 'post',
    data
  });
}
